package restless.utilities {
	
	import flash.net.navigateToURL;	
	import flash.net.URLRequest;
	
	public class RLEGetURL {
		public static function RLEGetURL(url:String, window:String = null, bTrace:Boolean):void {
			
			var req:URLRequest = new URLRequest(url);
			
			if(bTrace) trace("getURL", url);
			
			try {
				navigateToURL(req, window);
			} catch (e:Error) {
				trace("Navigation to URL has failed", e.message);
			}
		}
	}
}